home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(load){
- function gottwig()
- {
- gottwig_s.start();
- }
- function buttonsound()
- {
- button_s.start();
- }
- function levelcomplete()
- {
- levelcomplete_s.start();
- }
- function startsound()
- {
- if(_root.newLoad == 0)
- {
- _root.newLoad = 1;
- intro_s.start();
- }
- }
- function stopsound()
- {
- main_s.stop("egg_main_loop2.wav");
- main_s.start();
- main_s.stop("egg_main_loop2.wav");
- }
- musicstatus = true;
- gottwig_s = new Sound();
- gottwig_s.attachSound("eggfx_pickup.wav");
- button_s = new Sound();
- button_s.attachSound("eggfx_button.wav");
- levelcomplete_s = new Sound();
- levelcomplete_s.attachSound("eggfx_finish_level.wav");
- main_s = new Sound();
- main_s.attachSound("egg_main_loop2.wav");
- main_s.onSoundComplete = function()
- {
- main_s.start();
- };
- intro_s = new Sound();
- intro_s.attachSound("egg_main_intro.wav");
- intro_s.start();
- intro_s.onSoundComplete = function()
- {
- main_s.start();
- };
- }
-